﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Alos.Entity;

namespace Alos.IRepository
{
    public interface IReExamSubmitRepository : IBaseRepository<ReExamSubmit>
    {
        /// <summary>
        /// 学生课堂测验提交表
        /// </summary>
        /// <param name="ReExamSubmit">学生课堂测验提交</param>
        /// <returns></returns>
        bool CreatReExamSubmit(ReExamSubmit ReExamSubmit);
        /// <summary>
        /// 修改学生课堂测验提交表
        /// </summary>
        /// <param name="StudentID">学生ID</param>
        /// <param name="ExamID">课堂测验ID</param>
        /// <returns></returns>
        bool UpdateReExamSubmit(int StudentID, string ExamID);
        /// <summary>
        /// 统计学生课堂测验提交（客观题）
        /// </summary>
        /// <param name="ExamID">测验编码</param>       
        /// <returns></returns>
        dynamic GetReExamSubmitByExamID(string ExamID);

        /// <summary>
        /// 添加课堂测验入库记录（课堂测验提交表）
        /// </summary>
        /// <param name="res"></param>
        /// <returns></returns>
        bool Add(ReExamSubmit res);
    }
}
